package com.suke.controller;

/**
 * @author java43.熊佳
 * @date 2020/8/14 19:29
 * @Description
 */
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务提供方暴露的sayHello服务
 */
@RestController
public class HelloController {
    @RequestMapping("/sayHello/{word}")
    public String sayHello(@PathVariable("word") String word){
        return "hello:"+word;
    }
}